import { createApp } from 'vue'
import App from './App.vue'
// 样式
import '@/assets/css/index.less'
import 'normalize.css'
// ui库
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
// 全局属性
import { globalRegister } from '@/global'
import { setupStore } from './store'

import store from './store'
import router from './router'

// console.log(import.meta)
// console.log(import.meta.env.MODE)
// console.log(import.meta.env.VITE_MODE_NAME)
// console.log(import.meta.env.VITE_APP_BASE_API)
// console.log(store.state.name)
// request.get('')

const app = createApp(App)
globalRegister(app)

app.use(store)
setupStore()

app.use(router)
app.use(ElementPlus)

app.mount('#app')

export default app
